/*
 * Diego Zamboni Latance 			344990
 * Fellipe Augusto Ruiz de Souza 	344796
 * 
 */
package ast;

public class MessageSendToSuper extends MessageSend {

	public MessageSendToSuper(ClassDec classDec, Method method,
			ExprList exprList) {
		this.classDec = classDec;
		this.method = method;
		this.exprList = exprList;
	}

	public Type getType() {
		return method.getType();
	}

	public void genC(PW pw, boolean putParenthesis) {

	}

	public void genKrakatoa(PW pw, boolean putParenthesis) {
		pw.print(method.getIdent() + "(");
		if (exprList != null)
			exprList.genKrakatoa(pw);
		pw.print(")");
	}

	private ClassDec classDec;
	private Method method;
	private ExprList exprList;
}